package com.monolithiot.sso.controller.device;

import com.monolithiot.sso.common.vo.BasicJsonResponse;
import org.springframework.web.bind.annotation.*;

/**
 * 2019/3/22 Create by 郭文梁
 * DeviceSmsController
 * 设备短信发送服务
 *
 * @author 郭文梁
 * @date 2019/3/22
 */
@RestController
@RequestMapping("/device/sms")
public class DeviceSmsController {
    /**
     * 发送注册验证码
     *
     * @param number 手机号码
     * @return BJR without data
     */
    @PostMapping("/_send-for-register")
    public BasicJsonResponse<Void> sendForRegister(@RequestParam String number) {
        return BasicJsonResponse.ok();
    }

    /**
     * 检查手机验证码是否正确
     *
     * @param number     手机号
     * @param verifyCode 验证码
     * @return BJR without data
     */
    @GetMapping("/verify")
    public BasicJsonResponse<Void> verify(@RequestParam("number") String number, @RequestParam("verifyCode") String verifyCode) {
        return BasicJsonResponse.ok();
    }
}
